//
//  GPWebViewController.swift
//  SeaTransportManage
//
//  Created by guopengwen on 2021/11/30.
//

import UIKit
import WebKit

class GPWebViewController: GPBaseViewController {
    
    var url: String = ""
    var pageTitle: String = ""

    override func viewDidLoad() {
        super.viewDidLoad()
        setNavBarTitle(pageTitle)

        view.addSubview(webView)
        webView.snp.makeConstraints { (make) in
            make.top.equalTo(0)
            make.left.equalTo(0)
            make.right.equalTo(0)
            make.bottom.equalTo(0)
        }
        
        webView.load(URLRequest.init(url: URL.init(string: url)!))
    }
    
    lazy var webView: WKWebView = {
        let web = WKWebView.init(frame: CGRect.init(x: 0, y: 0, width: self.view.bounds.size.width, height: self.view.bounds.size.height))
        return web
    }()
}
